<style>
    textarea{
        resize: none;
    }
	.btn_box{
		    width: 100px;
    height: 40px;
    text-align: center;
    color: #fff;
    background: #26c17b;
    border: none;
    outline: none;
    cursor: pointer;
    display: block;
		}
</style>
<!-- 内容 -->
<div id="right_box">
<div class="right_a">
            <a href="/empress/wechart.php"><span class="right_box1 set_menu"><div class="btn_box">自定义菜单</div></span></a>
            <a href="/empress/wechart.php?action=subscribe"><span class="right_box1 set_menu" ><div class="btn_box">首次关注设置</div></span></a>
            <a href="/empress/wechart.php?action=set_token"><span class="right_box1 set_menu"><div class="btn_box">微信接口配置</div></span></a>
            <a href="/empress/wechart.php?action=material"><span class="right_box1 set_menu" style="border:1px solid #fff"><div class="btn_box">图文消息管理</div></span></a>
            <a href="/empress/wechart.php?action=replay_keywords"><span class="right_box1 set_menu"><div class="btn_box">关键词回复设置</div></span></a>
            <a href="/empress/wechart.php?action=option_url"><span class="right_box1 set_menu"><div class="btn_box">自定义URL</div></span></a>
 </div>
<link href='/static/adm/css/main.css' rel='stylesheet' type='text/css' />
<link href='/static/adm/css/global.css' rel='stylesheet' type='text/css' />
<link href='/static/adm/css/wechat.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/static/adm/js/jquery.min.js'></script>
<script type='text/javascript' src='/static/adm/js/global.js'></script>
<script type='text/javascript' src='/static/adm/js/wechat.js?<?php echo time();?>'></script>
<link href='/static/adm/operamasks/operamasks-ui.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/static/adm/operamasks/operamasks-ui.min.js'></script>
<script type='text/javascript' src='/static/adm/masonry/masonry.min.js'></script>
<div class="wrap">
<script language="javascript">$(document).ready(wechat_obj.material_multi_init);</script>
<div id="material" class="r_con_wrap">
	<form id="material_form" method="post">
		<div class="m_lefter multi">
			<div class="time"><?php echo date("Y-m-d");?></div>
			<div class="first" id="multi_msg_0">
				<div class="info">
					<div class="img">
                    <?php if($resInfo['title_pic_url']==''){?>
					封面图片
					<?php }else{?>
					<a href="{{$resInfo.title_pic_url|showPic}}" target="_blank"><img src="{{$resInfo.title_pic_url|showPic}}"></a>
					<?php }?>
					</div>
					<div class="title"><?php echo $resInfo['title'];?></div>
				</div>
				<div class="control">
					<a href="#mod"><img src="/static/adm/images/mod.gif" /></a>
				</div>
				<input type="hidden" name="subid[]" value="<?php echo $resInfo['id'];?>" />
				<input type="hidden" name="Title[]" value="<?php echo $resInfo['title'];?>" />
				<input type="hidden" name="Url[]" value="<?php echo $resInfo['link_url_id'];?>" />
				<input type="hidden" name="ImgPath[]" value="<?php if($resinfo['title_pic_url']!=''){ echo $resInfo['title_pic_url'];}?>" />
			</div>
            <?php 
			if(count($resInfo['resSub'])>0){
			foreach($resInfo['resSub'] as $key=>$rr){	
			?>
			<div class="list" id="multi_msg_<?php echo $key+1;?>">
				<div class="info">
					<div class="title"><?php echo $rr['title']?></div>
					<div class="img">
                    <?php if($rr['title_pic_url']==''){?>
					缩略图
					<?php }else{?>
					<a href="<?php echo $rr['title_pic_url']?>" target="_blank"><img src="<?php echo $rr['title_pic_url']?>"></a>
					<?php }?>
					</div>
				</div>
				<div class="control">
					<a href="#mod"><img src="/static/adm/images/mod.gif" /></a>
					<a href="#del"><img src="/static/adm/images/del.gif" /></a>
				</div>
				<input type="hidden" name="subid[]" value="<?php echo $rr['id']?>" />
				<input type="hidden" name="Title[]" value="<?php echo $rr['title']?>" />
				<input type="hidden" name="Url[]" value="<?php echo $rr['link_url_id']?>" />
				<input type="hidden" name="ImgPath[]" value="<?php if($rr['title_pic_url']!=''){ echo $rr['title_pic_url']; }?>" />
			</div>
			<?php 
			}
			}else{
			?>
			<div class="list" id="multi_msg_1">
				<div class="info">
					<div class="title">标题</div>
					<div class="img">
					缩略图
					</div>
				</div>
				<div class="control">
					<a href="#mod"><img src="/static/adm/images/mod.gif" /></a>
					<a href="#del"><img src="/static/adm/images/del.gif" /></a>
				</div>
				<input type="hidden" name="subid[]" value="" />
				<input type="hidden" name="Title[]" value="" />
				<input type="hidden" name="Url[]" value="" />
				<input type="hidden" name="ImgPath[]" value="" />
			</div>
			<?php }?>
			<div class="add"><a href="#add"><img src="/static/adm/images/add.gif" align="absmiddle" /> 增加一条</a></div>
		</div>
		<div class="m_righter">
			<div class="mod_form">
				<div class="jt"><img src="/static/adm/images/material_jt.gif" /></div>
				<div class="m_form">
					<span class="fc_red">*</span> 标题<br />
					<div class="input"><input name="inputTitle" value="<?php echo $resInfo['title']?>" type="text" /></div>
					<div class="blank9"></div>
					<span class="fc_red">*</span> 封面图片 <span class="tips">大图尺寸建议：<span class="big_img_size_tips">640*360px</span></span><br />
					<div class="blank6"></div>
					<div><input name="FileUpload" id="MsgFileUpload" type="file" /></div>
					<div class="blank3"></div>
					<span class="fc_red">*</span> 链接页面<br />
					<div class="input"><select name='inputUrl'>
					<?php echo $resUrl; ?>
					</select></div>
				</div>
			</div>
		</div>
				<div class="clear"></div>
	<div class="button"><input type="submit" class="btn_green" name="submit_button" value="提交保存" />
	<a href="{{:U('/member/material/index')}}" class="btn_gray">返回</a></div>
	<input type="hidden" name="MId" value="<?php echo $resInfo['id'];?>" />
	<input type="hidden" name="MaterialType" value="1" />
	<input type="hidden" name="do_action" value="wechat.material">
</form>
</div>
</div>
</div>